<template>
  <!-- 页面架构 -->
  <el-container>
    <!-- width自适应,不然header与aside有间隔 -->
    <el-aside width="auto">
      <common-aside />
    </el-aside>
    <el-container>
      <el-header>
        <common-header />
      </el-header>
      <el-main>
        <router-view></router-view>
      </el-main>
    </el-container>
  </el-container>
</template>

<script>
import CommonAside from "@/components/CommonAside.vue";
import CommonHeader from "@/components/CommonHeader.vue";
export default {
  data() {
    return {};
  },
  components: {
    CommonAside,
    CommonHeader,
  },
};
</script>

<style lang="less" scoped>
.el-container {
  width: 100vw;
  height: 100vh;
}
.el-header {
  padding: 0;
  width: 100%;
  height: 100%;
}
.el-menu {
  overflow: hidden;
}
</style>
